#引入全局变量
require_relative "sub"
p $Glo_var
#常亮 大写开头
Constant=1
Constant=2
#warning: already initialized constant Constant 
#warning: previous definition of Constant was here
p Constant

#赋值
a,b,c=1,2,3
d,*e,f=1,2,3,4,5 #变量前加*自动封装成数组
p [a,b,c],[d,e,f]
#交换变量的值
a,b,c=c,b,a
p [a,b,c]
#获取数组元素
p,q=e # e=[2,3,4]
p p,q